package com.itheima.sc.mapper.ums;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.sc.pojo.ums.UmsRole;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UmsRoleMapper extends BaseMapper<UmsRole> {
    @Insert("insert into ums_role_resource_relation(role_id, resource_id) values(role_id=#{roleId},resource_id=#{resourceId})")
    void allocResource(Integer roleId, Integer resourceId);
}
